<?php

// R0910CMS 
// created by TLightSky
// time : 20100224

if(!defined("IN_R0910CMS")) {
    exit("Access Denied!");
}

class R_Db_SQLMaker_Delete extends R_Db_SQLMakerAbstract {
    public $tableName = null;
    public $where    = null;
    public function makeSQL() {
        $this->checkNotNull(array(
            'tableName', 'where',
            ) //end of the array
        );
        $t1 = "DELETE FROM ".$this->addSlash1($this->tableName);
        $t2 = $this->makeWhere($this->where);

        $this->_sql = join("",array($t1,$t2,';',));
        return $this->_sql;
    }
}
